﻿<UserControl x:Class="UMLTouch.Domain.ClassDiagram.Controls.EntityControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     Loaded="UserControl_Loaded"
          Height="120" Width="120"
             MinHeight="120" MinWidth="120"
             InkCanvas.Top="100"
             >
    <!--<Canvas  Height="120" Width="120" MinHeight="120" MinWidth="120">-->
    <Border CornerRadius="20" BorderBrush="Black" BorderThickness="1">
        <Border.Effect>
            <DropShadowEffect  Color="DarkGray" BlurRadius="5"/>
        </Border.Effect>
        <Border.Background>
            <LinearGradientBrush StartPoint="0,0" EndPoint="0.5,0">
                <GradientStop Color="LightSteelBlue" Offset="0.0" />
                <GradientStop Color="WhiteSmoke" Offset="1.1" />
            </LinearGradientBrush>
        </Border.Background>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition  Height="30"/>
                <RowDefinition  />
                <RowDefinition  />
                <RowDefinition Height="10" />
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center">
               Class
            </TextBlock>
            <Expander Grid.Row="1" ExpandDirection="Down" IsExpanded="True"
                      Background="WhiteSmoke">
                <Expander.Header> Fields </Expander.Header>
            </Expander>
            <Expander Grid.Row="2" ExpandDirection="Down" IsExpanded="True"
                      Background="WhiteSmoke">
                <Expander.Header>Methods</Expander.Header>
            </Expander>
        </Grid>
        
    </Border>
   <!--</Canvas>-->
</UserControl>
